package com.zrrd.yt.list.client;

import com.zrrd.yt.common.result.Result;
import com.zrrd.yt.list.client.impl.ListFeignClientImpl;
import com.zrrd.yt.model.list.SearchParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-list",fallback = ListFeignClientImpl.class)
public interface ListFeignClient {
    //更新热度
    @GetMapping("/api/list/inner/updateHotScore/{skuId}")
    public Result updateHotScore(@PathVariable("skuId") Long skuId);

    //搜索商品
    @PostMapping("/api/list")
    public Result search(@RequestBody SearchParam param);
}
